package job.job2;

public class TestComparableCircle {

	public static void main(String[] args) {
		
		ComparableCircle c1 = new ComparableCircle(5.6);
		
		ComparableCircle c2 = new ComparableCircle(3.6);
		
		/*if(c1.compare(c1, c2)){
			System.out.println("两个圆面积相等");
		}else{
			System.out.println("两个圆面积不相等");
		}*/
		int num = c1.compare(c2);
		
		if(num == 1){
			System.out.println("c1大于c2");
		}else if(num == -1){
			System.out.println("c1小于c2");
		}else{
			System.out.println("c1等于c2");
		}
		

	}

}
